package org.administer.pojo;

import java.io.Serializable;
import java.util.List;

public class CrmPermission implements Serializable {
    private Integer id;
    private String name;
    private String type;
    private String url;
    private String percode;
    private Integer parentid;
    private String sortstring;
    private String available;
//    private boolean open = true;
    private List<CrmPermission> children; //子权限集合

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPercode() {
        return percode;
    }

    public void setPercode(String percode) {
        this.percode = percode;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getSortstring() {
        return sortstring;
    }

    public void setSortstring(String sortstring) {
        this.sortstring = sortstring;
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available;
    }

//    public boolean isOpen() {
//        return open;
//    }
//
//    public void setOpen(boolean open) {
//        this.open = open;
//    }

    public List<CrmPermission> getChildren() {
        return children;
    }

    public void setChildren(List<CrmPermission> children) {
        this.children = children;
    }
}
